#ifndef COLLISION_OBJECT_BULLET
#define COLLISION_OBJECT_BULLET

#include <EObject.h>
#include <btBulletDynamicsCommon.h>
#include <BulletClassDataSource/ObjectBullet.h>
#include <QMatrix4x4>
class CollisionObjectBullet : public ObjectBullet
{
	Q_OBJECT
        Q_PROPERTY(QMatrix4x4 WorldTransform READ getWorldTransform WRITE setWorldTransform)
        //Q_PROPERTY(int Collisionflags READ getCollisionflags WRITE setCollisionflags)

public:
    CollisionObjectBullet(QObject *parent = 0);
    virtual ~CollisionObjectBullet();
    virtual void refreshInfoContainer();

    QMatrix4x4 getWorldTransform();
    void setWorldTransform(const QMatrix4x4 matrix);

    int getCollisionflags();
    void setCollisionflags(int flags);
protected:
    void setCollisionObj(btCollisionObject* collisioinObj);
protected:
    btCollisionObject* m_collisioinObj;
};
#endif // COLLISION_OBJECT_BULLET
